<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Progress Bar</title>
    <style>
      .progress-bar {
        --bar-width: 80px;
        --bar-height: 40px;
        --border-width: 2px;
        --border-color: #000;
        --animation-duration: 2s;

        width: var(--bar-width);
        height: var(--bar-height);
        border: var(--border-width) solid var(--border-color);
        padding: 3px;
        background: repeating-linear-gradient(
          90deg,
          var(--border-color) 0 10px,
          transparent 0 16px
        ) 0/0% no-repeat content-box;
        position: relative;
        animation: progress var(--animation-duration) infinite steps(6);
      }

      .progress-bar::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        border: var(--border-width) solid var(--border-color);
      }

      @keyframes progress {
        to {
          background-size: 120%;
        }
      }
    </style>
  </head>
  <body>
    <div class="progress-bar"></div>
  </body>
</html>
